<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>blank</title>

    <!-- Bootstrap core CSS -->
    <link href="http://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet">
    
  </head>

  <body>dddd
	<img alt="" src="http://bucket-wjb.oss-cn-beijing-xhcloud-d01-a.xhcloud.news.cn/test/pic/1507776069187_5.jpg">

	<!-- Core JavaScript ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script>
    <script src="http://cdn.bootcss.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <script src="http://v3.bootcss.com/assets/js/ie10-viewport-bug-workaround.js"></script>
    
    <script type="text/javascript">
	    $(function() {

	    });
	    function upload(){

	    }
	    
	    $(window).bind("load", function() {
	    	   // IMAGE RESIZE
	    	   $('img').each(function() {
	    	     var maxWidth = 120;
	    	     var maxHeight = 120;
	    	     var ratio = 0;
	    	     var width = $(this).width();
	    	     var height = $(this).height();
	    	  
	    	     if(width > maxWidth){
	    	      ratio = maxWidth / width;
	    	      $(this).css("width", maxWidth);
	    	      $(this).css("height", height * ratio);
	    	      height = height * ratio;
	    	     }
	    	     var width = $(this).width();
	    	     var height = $(this).height();
	    	     if(height > maxHeight){
	    	      ratio = maxHeight / height;
	    	      $(this).css("height", maxHeight);
	    	      $(this).css("width", width * ratio);
	    	      width = width * ratio;
	    	     }
	    	   });
	    	   //$("#contentpage img").show();
	    	   // IMAGE RESIZE
	    	});
    </script>
    
  </body>
</html>